import { configureStore } from '@reduxjs/toolkit'
import taskSlice from './features/taskSlice'
import reduxLogger from 'redux-logger' // redux日志中间件
import reduxThunk from 'redux-thunk' // 异步派发中间件
const store = configureStore({
	reducer: {
		task: taskSlice
	},
	middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(reduxLogger, reduxThunk)
})
export default store